<template>
    <ChildComponent @messageToParent="handleMessageFromChild" />
  </template>
  
  <script>
  import { ref } from 'vue';
  import ChildComponent from './child.vue';
  
  export default {
    components: { ChildComponent },
    methods: {
      handleMessageFromChild(message) {
        console.log(message);
      }
    }
  };
  </script>
  